<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>新的方法</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="migration54.classes.html">新的类和接口</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="migration54.removed-extensions.html">移除的扩展</a></div>
 <div class="up"><a href="migration54.html">从 PHP 5.3.X 迁移到 PHP 5.4.X</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="migration54.methods" class="section">
  <h2 class="title">新的方法</h2>
  <p class="simpara">
   在 PHP 5.4.0 中引入了几个新的方法：
  </p>
  <p class="simpara"><a href="book.xsl.html" class="link">XSL</a>:</p>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="methodname"><a href="xsltprocessor.setsecurityprefs.html" class="methodname">XsltProcessor::setSecurityPrefs()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="methodname"><a href="xsltprocessor.getsecurityprefs.html" class="methodname">XsltProcessor::getSecurityPrefs()</a></span>
    </span>
   </li>
  </ul>
  <p class="simpara"><a href="book.spl.html" class="link">SPL</a>:</p>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="methodname"><a href="regexiterator.getregex.html" class="methodname">RegexIterator::getRegex()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="methodname"><a href="splobjectstorage.gethash.html" class="methodname">SplObjectStorage::getHash()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="methodname"><a href="directoryiterator.getextension.html" class="methodname">DirectoryIterator::getExtension()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="methodname"><a href="spldoublylinkedlist.serialize.html" class="methodname">SplDoublyLinkedList::serialize()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="methodname"><a href="spldoublylinkedlist.unserialize.html" class="methodname">SplDoublyLinkedList::unserialize()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="methodname"><a href="splfileinfo.getextension.html" class="methodname">SplFileInfo::getExtension()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="methodname"><a href="splfileobject.fputcsv.html" class="methodname">SplFileObject::fputcsv()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="methodname"><strong>SplQueue::serialize()</strong></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="methodname"><strong>SplQueue::unserialize()</strong></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="methodname"><strong>SplStack::serialize()</strong></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="methodname"><strong>SplStack::unserialize()</strong></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="methodname"><strong>SplTempFileObject::fputcsv()</strong></span>
    </span>
   </li>
  </ul>
  <p class="simpara"><a href="book.reflection.html" class="link">反射</a>:</p>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="methodname"><a href="reflectionextension.ispersistent.html" class="methodname">ReflectionExtension::isPersistent()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="methodname"><a href="reflectionextension.istemporary.html" class="methodname">ReflectionExtension::isTemporary()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="methodname"><a href="reflectionclass.iscloneable.html" class="methodname">ReflectionClass::isCloneable()</a></span>
    </span>
   </li>
  </ul>
  <p class="simpara"><a href="class.closure.html" class="classname">Closure</a>:</p>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="methodname"><a href="closure.bind.html" class="methodname">Closure::bind()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="methodname"><a href="closure.bindto.html" class="methodname">Closure::bindTo()</a></span>
    </span>
   </li>
  </ul>
  <p class="simpara"><a href="ref.pdo-dblib.html" class="link">PDO_dblib</a>:</p>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="methodname"><strong>PDO::newRowset()</strong></span>
    </span>
   </li>
  </ul>
  <p class="simpara"><a href="class.streamwrapper.html" class="classname">StreamWrapper</a>:</p>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     <span class="methodname"><a href="streamwrapper.stream-metadata.html" class="methodname">StreamWrapper::stream_metadata()</a></span>
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     <span class="methodname"><a href="streamwrapper.stream-truncate.html" class="methodname">StreamWrapper::stream_truncate()</a></span>
    </span>
   </li>
  </ul>
 </div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="migration54.classes.html">新的类和接口</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="migration54.removed-extensions.html">移除的扩展</a></div>
 <div class="up"><a href="migration54.html">从 PHP 5.3.X 迁移到 PHP 5.4.X</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
